<template>
  <div class="flex gap-4 flex-wrap">
    <UploadGroup v-bind="batchUpdate"></UploadGroup>
    <UploadGroup v-bind="batchMigration"></UploadGroup>
    <UploadGroup v-bind="batchStorage"></UploadGroup>
    <Download url="/media/device/manifest?scope=0">{{ t('设备清单') }}</Download>
    <Download url="/media/device/relations?scope=0">{{ t('绑定关系') }}</Download>
  </div>
</template>

<script setup lang="ts">
import { type UploadGroupParams } from '@/api/modules/utils/files';
const { t } = useI18n();
const batchUpdate: UploadGroupParams = {
  uploadType: '0',
  downloadType: '0',
  downloadLink: `/media/device/xlsx`,
  uploadLink: `/media/device/xlsx`,
  uploadText: '批量绑定LCD',
  showResult: true,
};
const batchMigration: UploadGroupParams = {
  uploadType: '',
  downloadType: '',
  downloadLink: `/media/device/shift/xlsx`,
  uploadLink: `/media/device/shift/xlsx`,
  uploadText: '批量迁移',
  showResult: true,
};
const batchStorage: UploadGroupParams = {
  uploadType: '',
  downloadType: '',
  downloadLink: `/media/device/warehouse/xlsx`,
  uploadLink: `/media/device/warehouse/xlsx`,
  uploadText: '入库',
  showResult: true,
};
</script>

<style lang="scss" scoped></style>
